home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Amiga Plus 1997 #1
/
Amiga Plus CD - 1997 - No. 01.iso
/
pd
/
programmierung
/
mesa-1.2.8
/
mklib.irix5
< prev
next >
Wrap
Text File
|
1996-05-27
|
760b
|
32 lines
#!/bin/sh
# Make an IRIX 5 DSO
# First argument is name of output library
# Rest of arguments are object files
LIBRARY=$1
shift 1
OBJECTS=$*
# This is a bit of a kludge, but...
if test ${LIBRARY} = "libMesaGL.so" ; then
# must add libXext.a to MesaGL.so in case one relinks a precompiled
# OpenGL program which wasn't linked with -lXext.
OBJECTS="${OBJECTS} /usr/lib/libXext.a"
fi
ld -shared -all -o ${LIBRARY} ${OBJECTS}
# You may want to add the following to the ld line:
# -soname <path>$LIBNAME
#
# where LIBNAME=`basename $LIBRARY` and <path> is where you're going to
# put Mesa's libraries. This may solve problems with the runtime
# loader/linker (rld) not being able to find the library.
# For example: -soname /usr/local/lib/$LIBNAME